package com.example.SpringBoot_demo.mapper;

import com.example.SpringBoot_demo.bean.LoginUser;
import com.example.SpringBoot_demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface LoginMapper {
    LoginUser loginById(String userId);
    LoginUser loginByName(String userName);
    LoginUser getUserByEmail(String email);
    void updateUserPassword(String email,String userName,String password,String password2) ;
    LoginUser login(@Param("userName") String userName, @Param("password") String password);
    void registUser(String userId,  String userName, String password,String password2, String userSex,  String userPhone,String userAddress,String email);
}
